import type { Plugin } from '@nuxt/types'
import type { Store } from 'vuex'

type IRef = {
  store: Store<any> | null
}

export const ref: IRef = {
  store: null,
}
const fn: Plugin = ({ store }) => {
  ref.store = store
}
// & { store: Store<any> }
export default fn
